using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Entities;
using DAL;
using BUS;
using Utility;
public partial class Default2 : System.Web.UI.Page
{
    public double sogiay = 0;
    protected void Page_Load(object sender, EventArgs e)
    {
        tbSanpham sp = tbSanphamBUS.GetByID(9);
        DateTime now = DateTime.Now;
        //DateTime enddate = DateTime.Now.AddMinutes(100);
        DateTime enddate =sp.Hansudung;

        TimeSpan t = enddate - now;
        sogiay = Double.Parse(t.TotalSeconds.ToString());
    }
}
